'use strict';

/**
 * @name HeaderCtrl
 * @author Yud
 */

angular.module('metalabPartnerApp').controller('HeaderCtrl', ['$scope', '$rootScope', 'unreadMessage',
    function ($scope, $rootScope, unreadMessage) {
        $rootScope.unreadMessage = unreadMessage;
        // bind bootstrap navbar-toggle click to hide
        angular.element('#navbar li a').on('click', function () {
            angular.element('.navbar-collapse').collapse('hide');
        });
        $scope.toggled = function (open) {
            console.log('Dropdown is now: ', open);
        };
    }]);
